#include <stdio.h>  
int score[15];  
  
int main() {  
    int max = -1;  
    for (int i = 0; i < 10; i++)  
        if (scanf("%d", &score[i]));  
    for (int i = 0; i < 10; i++)  
        max = max > score[i] ? max : score[i];  
    for (int i = 0; i < 10; i++)  
        if (score[i] == max)  
            printf("%d\n", i + 1);  
    return 0;  
}  